import request from '@/utils/http'
export const getCartAPI = (uid) => {
    return request({
        url: '/getCollectionList',
        method: 'post',
        data: {
            uid
        }
    })
}
export const addToCartAPI = (uid, gid, count) => {
    return request({
        url: '/addToCart',
        method: 'post',
        data: {
            uid,
            gid,
            count
        }
    })
}
export const delFromCartAPI = (uid, gid) => {
    return request({
        url: '/delFromCart',
        method: 'post',
        data: {
            uid,
            gid
        }
    })
}
export const modfifyCollctionAPI = (uid, gid, count) => {
    return request({
        url: '/modifyCollection',
        method: 'post',
        data: {
            uid,
            gid,
            count
        }
    })
}
